home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Trading on the Edge
/
Trading On The Edge - CD-ROM Toolkit (Wayzata Technology)(2031)(1994).bin
/
pc
/
mac_file
/
vendor_d
/
neuralwa
/
nw2v50
/
tsp.h
< prev
next >
Wrap
Text File
|
1993-08-23
|
3KB
|
79 lines
/* 11:00 30-Aug-87 (tsp.h) travelling Salesman Problem header file */
/************************************************************************
* Copyright(C) 1987-1992 NeuralWare Inc *
* Penn Center West, IV-227, Pittsburgh, PA 15276 *
* Telephone: (412) 787-8222 FAX: (412) 787-8220 *
* *
* All rights reserved. No part of this program may be reproduced, *
* stored in a retrieval system, or transmitted, in any form or by any *
* means, electronic, mechanical, photocopying, recording or otherwise *
* without the prior written permission of the copyright owner, *
* NeuralWare, Inc. *
* *
* PROPRIETARY NOTICE *
* *
* This document is the property of NeuralWare, Inc. and contains *
* trade-secrets and other proprietary information. The information *
* herein is reserved as proprietary to NeuralWare, and is not to be *
* published, reproduced, copied, disclosed, used, or reverse *
* engineered without the express written consent of a duly authorized *
* representative of NeuralWare. *
************************************************************************
*/
/************************************************************************/
/* */
/* TSP build structures for cities */
/* */
/************************************************************************/
#define DEFAULT_CITY_FILE_NAME "city" /* the default name for read/write */
#define DEFAULT_NET_FILE_NAME "tsp.ins" /* the default file name for write */
/* Network energy functions */
#define HOPF 0
#define SZU 1
#define Other 2
#ifdef SUN
#define MAX_NUM_CITIES 30
#else
#define MAX_NUM_CITIES 15
#endif
#ifdef SUN
#define MAX_CITY_NAME_SIZE 30
#else
#define MAX_CITY_NAME_SIZE 10
#endif
struct city {
char name[MAX_CITY_NAME_SIZE];
REAL xloc;
REAL yloc;
REAL dist[MAX_NUM_CITIES];
};
typedef struct city CITY;
/************************************************************************/
/* */
/* TSP constants for network build */
/* */
/************************************************************************/
#define NLAY 5 /* layer control blocks to allocate */
#define NPES 5*MAX_NUM_CITIES*MAX_NUM_CITIES /* # of pes to work with */
#define NCONN_PER_CITY 4
#define NCONN NCONN_PER_CITY*MAX_NUM_CITIES /* max # conns in a PE */
#define NTEST 1 /* number of test inputs */
#define NINPUT MAX_NUM_CITIES*MAX_NUM_CITIES /* number of inputs/test */
#define NOUTPUT MAX_NUM_CITIES*MAX_NUM_CITIES /* number of outputs/test */
#define FIXED_WT 1
#define MOD_WT 0